<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>jqueryAjax</title>
</head>
<script src="../js/jquery-3.4.1.js"></script>
<script>
    $(function () {
        $("button").click(function () {
            $.get("../txt/outer.txt",function (responseText) {
                $("#myDiv").html(responseText);
            })
        })
    })
</script>
<body>
    <div id="myDiv"><h2>使用 AJAX 修改该文本内容</h2></div>
    <button type="button" >修改内容</button>
</body>
</html>